﻿<%@ page language="C#" masterpagefile="~/Manage/OrgInfo/MemMaster.master" autoeventwireup="true" inherits="Manage_OrgInfo_ReceivingNew, App_Web_receivingnew.aspx.666789b0" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript">
function Check() {
var vtxtPaymentDate=document.getElementById("ctl00_ContentPlaceHolder1_txtPaymentDate");
var vtxtPaymentAmount=document.getElementById("ctl00_ContentPlaceHolder1_txtPaymentAmount");
var vdlAccount=document.getElementById("ctl00_ContentPlaceHolder1_DropDownList1");

if( vtxtPaymentDate.value.length == 0 ){
alert("Field 'Payment Date' is not valid!");
vtxtPaymentDate.focus();
return false;
}				
if(!chkdate2(vtxtPaymentDate.value)) {
alert(" Field 'Payment Date' is not valid!");
vtxtPaymentDate.focus();
return false;
}					
if( vtxtPaymentAmount.value.length == 0 ){
alert("Field 'Payment Amount' is not valid!");
vtxtPaymentAmount.focus();
return false;
}				
if(!chknum(vtxtPaymentAmount.value)) {
alert(" Field 'Payment Amount' is not valid!");
vtxtPaymentAmount.focus();
return false;
}				
if( vdlAccount.value.length == 0 ){
alert("Field 'Payment from' is not valid!");
vdlAccount.focus();
return false;
}	
		
return true;
}
</script>
<table width="550" border="0" cellspacing="1" cellpadding="1" align="center">
  <tr>
    <td height="40">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="20%" height="22">Receipt Ref:</td>
    <td width="30%">&nbsp;<%=OrgSid%></td>
    <td width="22%">&nbsp;</td>
    <td width="28%">&nbsp;</td>
  </tr>
  <tr>
    <td height="22">Payment Date:</td>
    <td>&nbsp;<asp:TextBox ID="txtPaymentDate" runat="server" onclick="this.value='';">dd/mm/yyyy</asp:TextBox></td>
    <td>Payment Amount:</td>
    <td>&nbsp;<asp:TextBox ID="txtPaymentAmount" runat="server"></asp:TextBox></td>
  </tr>
  <tr>
    <td style="height: 24px">Payment from:</td>
    <td colspan="3" style="height: 24px">&nbsp;<asp:DropDownList ID="DropDownList1" runat="server">
        </asp:DropDownList></td>
  </tr>
  <tr>
    <td height="22" colspan="4"><div align="center">
        <asp:Button ID="bnSave" runat="server" Text="Submit" OnClick="bnSave_Click" />&nbsp;</div></td>
  </tr>
</table>
</asp:Content>

